package videowarehouseapp;

import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Iterator;
import java.util.List;

//import videowarehouseapp.Catalogue.CatalogueInfo;
//import videowarehouseapp.Customer.CustomerInfo;
import videowarehouseapp.Delivery.DeliveryInfo;
//import videowarehouseapp.Order.OrderInfo;
////import videowarehouseapp.Order.OrderLineInfo;
import videowarehouseapp.Stock.StockInfo;
//import videowarehouseapp.dataobjects.CatalogueDO;
//import videowarehouseapp.dataobjects.CustomerDO;
import videowarehouseapp.dataobjects.DeliveryDO;
//import videowarehouseapp.dataobjects.OrderDO;
import videowarehouseapp.dataobjects.StockDO;

public class TestDriver {

	/**
	 * @param args
	 * @throws ApplicationException 
	 */
	public static void main(String[] args) throws ApplicationException {
		
   
        Stock stock = new StockDO();
        StockInfo item = new StockInfo(0, 1, "Sydney", 10);
        int itemId1 = stock.createItem(item);
        item = new StockInfo(0, 1, "Sydney", 10);
        int itemId2 = stock.createItem(item);
        item = new StockInfo(0, 2, "Sydney", 10);
        int itemId3 = stock.createItem(item);
        item = new StockInfo(0, 3, "Sydney", 10);
        int itemId4 = stock.createItem(item);
        item = stock.getItemById(itemId1);
        List<StockInfo> items = stock.getItemByWarehouse("Sydney");
        int H1S = stock.getHoldingByWarehouse(1, "Sydney");
        H1S = stock.bought(1, 10, "Sydney");
        int H1M = stock.bought(1, 10, "Melbourne");
        H1S = stock.sold(1, 10, "Sydney");
        
	}

}
